package com.controller;

public class zuoye {
    public static void main(String[] args) {
        int num=123;
        int d1=num%10;
        num/=10;
        int d2=num%10;
        num/=10;
        int d3=num;
        int num2=d1*100+d2*10+d3;
        System.out.println(num2);




    }











}
